package cn.detu.uu;

public class Test7 {
    public static void main(String[] args) {
        String s = "    abcdefghij     ";
        System.out.println(s.charAt(6));
        System.out.println(s.concat("123"));
        System.out.println(s.contains("def"));
        System.out.println(s.startsWith("abc"));
        System.out.println(s.endsWith("ij"));
        System.out.println(s.equals("123"));
        System.out.println(s.hashCode());
        System.out.println(s.substring(1));
        System.out.println(s.substring(4,8));
        System.out.println(s.trim());
        System.out.println(s.toUpperCase());
        System.out.println(s.toLowerCase());
        System.out.println(s.length());
        System.out.println(s.isEmpty());
        System.out.println(s.indexOf("d"));
        System.out.println(s.lastIndexOf("sdfh"));
        System.out.println(s.toString());
        char[] c = s.toCharArray();
        System.out.println(c);
        String str = s.valueOf(10);
        System.out.println(str+10);
        String s1 = "kdsflksd1dsffsdfsd1sdfsdf1sdfsdf1";
        System.out.println(s1.split("1"));
    }
}
